package com.example.im.common

import android.os.Environment

object Constants {

    const val SERVICE_IP = "47.56.228.33"

    const val HTTP_URL_UPDATE_FILE =
        "http://${SERVICE_IP}:8090/services/baseservice/api/images/upload"

    const val HTTP_URL_INVITE_CODE_SET =
        "http://${SERVICE_IP}:8090/services/baseservice/api/invite/generator"

    const val HTTP_URL_INVITE_CODE_GET =
        "http://${SERVICE_IP}:8090/services/baseservice/api/invite/get-invite"

    //内网
    val HTTP_URL_INTRA_NET = "http://192.168.8.5:8888/api/"


    val BUNDLE_CHAT_RECORD = "BUNDLE_CHAT_RECORD"
    val BUNDLE_CHAT_MESSAGE = "BUNDLE_CHAT_MESSAGE"
    val BUNDLE_CHAT_USER_NAME = "BUNDLE_CHAT_RECORD"
    val BUNDLE_FRIEND_GOOD = "BUNDLE_FRIEND_GOOD"
    val BUNDLE_VIDEO_PATH = "BUNDLE_VIDEO_PATH"


    val CHAT_SEND = 1
    val CHAT_RECEIVE = 2
    val CHAT_STATUS_0 = 0//消息已读
    val CHAT_STATUS_1 = 1//消息未读
    val CHAT_STATUS_2 = 2//消息发送中
    val CHAT_STATUS_3 = 3//消息发送失败


    //其他
    val CONTENT_TYPE_OTHER = 0
    //文本
    val CONTENT_TYPE_TEXT = 1
    //语音
    val CONTENT_TYPE_VOICE = 2
    //图片
    val CONTENT_TYPE_PHOTO = 3
    //视频
    val CONTENT_TYPE_VIDEO = 4
    //文件
    val CONTENT_TYPE_FILE = 5
    //红包
    val CONTENT_TYPE_REDS = 6


    val BUNDLE_T0_ROOM_MARK = "BUNDLE_T0_ROOM_MARK"
    val BUNDLE_T0_ROOM_MARK_CREATE = 1
    val BUNDLE_T0_ROOM_MARK_CENTRE = 2
    val BUNDLE_T0_ROOM_DATA = "BUNDLE_T0_ROOM_DATA"

    val BUNDLE_T0_USER_DATA = "BUNDLE_T0_USER_DATA"

    val BUNDLE_T0_SEARCH_DATA = "BUNDLE_T0_SEARCH_DATA"

    val BUNDLE_T0_CHAT_DATA = "BUNDLE_T0_CHAT_DATA"


    val ACCOUNT_ATTRIBUTES = "ACCOUNT_ATTRIBUTES"
    val ACCOUNT_USER_NAME = "ACCOUNT_USER_NAME"
    val ACCOUNT_NICK_NAME = "ACCOUNT_NICK_NAME"
    val ACCOUNT_PASSWORDS = "ACCOUNT_PASSWORDS"
    val ACCOUNT_SERVER_IP = "ACCOUNT_SERVER_IP"
}
